{% extends "base2.html" %}
{% load staticfiles %}

  {% block private_css %}
  <link href="{% static 'css/security.css' %}" rel="stylesheet">
  {% endblock %}

  {% block content %}
      <h1>账号与安全</h1>
      <div class="row">
       <div id="loginForm" class="col-xs-offset-3 col-xs-6">
       <form role="form" action="/Accounts/security/" method="POST" autocomplete="off">
           <div class="form-group">
           <div><div class="reg_mess">
            <span class="glyphicon glyphicon-user">旧密码*</span></div>
            <div class="reg_mess_input">
            {{ obj1.pwd }}
            <span id="user_remind" style="display:none;" class="error_msg1"></span>
            {%  if obj1.errors.pwd %}
                <span id="user_error" class="error_msg">{{ obj1.errors.pwd.0 }}</span>
            {% endif %}
            </div>
            </div> 

        <div><div class="reg_mess" >
        <span class="glyphicon glyphicon-heart-empty">新密码*</span></div>
            <div class="reg_mess_input">
            {{ obj1.pwd1 }}
            <span id="nickname_remind" class="error_msg1"></span>
            {%  if obj1.errors.pwd1 %}
                <span id="nickname_error" class="error_msg">{{ obj1.errors.pwd1.0 }}</span>
            {% endif %}
            </div>
        </div>

        <div><div class="reg_mess" >
        <span class="glyphicon glyphicon-lock">确认密码*</span></div>
            <div class="reg_mess_input">
            {{ obj1.pwd2 }}
            <span id="pwd_remind" class="error_msg1"></span>
            {%  if obj1.errors.pwd2 %}
                <span id="pwd_error" class="error_msg">{{ obj1.errors.pwd2.0 }}</span>
            {% endif %}
            </div>
        </div>
        
        <div><div  class="reg_mess" >
        <span class="glyphicon glyphicon-lock">*</span></div>
            <div class="reg_mess_input">
            {{ obj1.pwd3 }}
            <span id="pwd2_remind" class="error_msg1"></span>
            {%  if obj1.errors.pwd3 %}
                <span id="pwd2_error" class="error_msg">{{ obj1.errors.pwd3.0 }}</span>
            {% endif %}
            </div>
        </div>
        
        <div><div class="reg_mess" >
        <span class="glyphicon glyphicon-envelope"></span></div>
            <div class="reg_mess_input">
            {{ obj1.email }}
            <span id="email_remind" class="error_msg1"></span>
            {%  if obj1.errors.email %}
                <span id="email_error" class="error_msg">{{ obj1.errors.email.0 }}</span>
            {% endif %}    
            </div>
        </div>
        <div class="btn-group">
           <button id="keepChange" type="submit" class="form-control btn btn-primary center-block">保存更改</button>
           <button id="back" type="submit" class="form-control btn btn-primary center-block">返回</button>
        </div>
        </div> <!--form-group-->
       </form>
       </div>
    </div>

  {% endblock %}